package com.zr.dao.base;

import java.util.List;
import com.zr.vo.base.BaseDriver;

/**
 * 司机增删改查
 */
public interface BaseDriverDao  {
    int deleteByPrimaryKey(Integer id);

    int insert(BaseDriver record);

    int insertSelective(BaseDriver record);

    BaseDriver selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(BaseDriver record);

    int updateByPrimaryKey(BaseDriver record);

    //xpj
    BaseDriver login(BaseDriver baseDriver);

    BaseDriver selectByDriverId(String driverId);

    List<BaseDriver> selectByConditions(BaseDriver baseDriver);

    void updateByDriverIdSelective(BaseDriver baseDriver);

    /**
     * 查询所有司机信息
     * @return
     * @author liutienan
     */
    List<BaseDriver> listAll();
}